public class MethodDemo12 {

    public static void main(String[] args) {
        // 斐波那契数列 0 1 1 2 3 5 8 13
        int a = 0;
        int b = 1;
        System.out.println(a);
        System.out.println(b);
        for (int i = 0; i < 10 ; i++) {
            int c = a + b;
            a = b;// 把b的值的给a
            b = c;// 把c的值给b
            System.out.println(c);
        }



    }

}
